$OpenBSD: patch-Mono_Addins_Mono_Addins_Addin_cs,v 1.1 2017/04/28 16:58:40 ajacoutot Exp $

From 877e8d901a35672b371140121f27773768d36ad4 Mon Sep 17 00:00:00 2001
From: Marius Ungureanu <teromario@yahoo.com>
Date: Sun, 25 Sep 2016 21:05:47 +0300
Subject: [PATCH] [Addin] Simplify linq

--- Mono.Addins/Mono.Addins/Addin.cs.orig	Wed Jul 27 00:26:26 2016
+++ Mono.Addins/Mono.Addins/Addin.cs	Wed Nov  9 11:33:07 2016
@@ -178,7 +178,7 @@ namespace Mono.Addins
 					string id, version;
 					Addin.GetIdParts (AddinInfo.Id, out id, out version);
 					var addins = database.GetInstalledAddins (null, AddinSearchFlagsInternal.IncludeAll | AddinSearchFlagsInternal.LatestVersionsOnly);
-					isLatestVersion = addins.Where (a => Addin.GetIdName (a.Id) == id && a.Version == version).Any ();
+					isLatestVersion = addins.Any (a => Addin.GetIdName (a.Id) == id && a.Version == version);
 				}
 				return isLatestVersion.Value;
 			}
